<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">
<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
	<title>Cadastrar Caracteristica</title>
</h:head>
<h:body>
	<ui:include src="../layout/menu.xhtml" />
	<div id="corpo">
		<f:view>
			<h:form>
				<fieldset>
					<legend>Cadastrar Caracteristica</legend>
					
					<table>
						<tr>
							<td>Nome:</td>
							<td colspan="2"><h:inputText size="30"
									value="#{inserirCaracteristicaBean.caracteristicasetor.descricao}"></h:inputText></td>


						</tr>

						<tr>

							<td><h:commandButton value="Cadastrar"
									action="#{inserirCaracteristicaBean.inserir}"></h:commandButton></td>
							<td><h:commandButton value="Voltar"
									action="/local/inserirsetores.xhtml" immediate="true"></h:commandButton></td>

						</tr>
					</table>


					<table>
						<tr>
							<td><p:dataTable var="lista"
									value="#{inserirSetorLocalBean.listaCaracteristicaSetores}">
									<p:column headerText="Caracteristicas">
										<h:outputText value="#{lista.descricao}" />
									</p:column>

									<p:column id="coluna1" headerText="Remover">
										<h:commandLink
											action="${inserirCaracteristicaBean.removerCaracteristica(lista)}"
											value="">
											<img title="Remover" class="remover"
												src="../midia/img/deletar.png" />
										</h:commandLink>
									</p:column>
								</p:dataTable></td>
						</tr>
					</table>


				</fieldset>
			</h:form>
		</f:view>
	</div>
	<ui:include src="../layout/rodape.xhtml" />
</h:body>
</html>